Centrallix - It's Different than what you Think
Home   |   Technology   |   Screen Shots   |   Download   |   Documentation   |   History   |   For Developers

Search...


Search For:

Index...


Centrallix Documentation

6.4 ORDER BY Clause


Centrallix supports sorting rows in a SQL result set using the ORDER BY clause.

SELECT :d:name, :d:size from /mydirectory d ORDER BY :d:size


You can specify whether to sort ascending or descending. The default is ascending if not specified.

SELECT :d:name, :d:size from /mydirectory d ORDER BY :d:size ASC

SELECT :d:name, :d:size from /mydirectory d ORDER BY :d:size DESC


Notes Regarding ORDER BY

First, a caveat: In the development version of Centrallix 0.9.0 as of the time of writing of this document, Centrallix does not yet support multi-stage queries, and so sorting support is limited at the present time. Sorting operates properly for an individual data source, but sorting on aggregate fields does not work. Sorting in joined queries is query-dependent.

For data sources which inherently support sorting, such as the relational databases Sybase and MySQL, sorting is performed by the database server. For other data sources, including the filesystem and CSV files, sorting is performed by Centrallix' OSML. Centrallix uses a combined mergesort / selection sort algorithm, which is a stable sort.

Comments...


(none yet)

Add a Comment...


Your Name:
Comment:


(c) 2001-2020 LightSys Technology Services, Inc. All trademarks are property of their respective owners.

Project Hosting Provided By:
Hosted by Sourceforge